import request from "@/utils/request";

export function cityList() {
  return request({
    url: "/bus/zjCounty/listPc",
    method: "get",
  });
}

// 列表
export function getList(data) {
  return request({
    url: "/admin/getWithdrawalList",
    method: "post",
    data: data,
  });
}
export function getTicker(data) {
  return request({
    url: "/openapi-service/getAliOssUploadTicket",
    method: "post",
    data: data,
  });
}
export function uploadUser(data) {
  return request({
    url: "/admin/batchShopUser",
    method: "post",
    data: data,
  });
}
export function handUser(data) {
  return request({
    url: "/admin/editUser",
    method: "post",
    data: data,
  });
}
export function getRoleList(data) {
  return request({
    url: "/admin/getUserList",
    method: "post",
    data: data,
  });
}
export function getDataById(data) {
  return request({
    url: "/bus/policy/getInfo/" + data,
    method: "get",
  });
}

export function addData(data) {
  return request({
    url: "/bus/policy/add",
    method: "post",
    data: data,
  });
}
export function editData(data) {
  return request({
    url: "/bus/policy/edit",
    method: "post",
    data: data,
  });
}
export function handData(data) {
  return request({
    url: "/admin/handWithdrawalData",
    method: "post",
    data: data,
  });
}
export function getOrder(data) {
  return request({
    url: "/admin/getOrderList  ",
    method: "post",
    data: data,
  });
}
export function handShopData(data) {
  return request({
    url: "/admin/editShop",
    method: "post",
    data: data,
  });
}
export function getSystem() {
  return request({
    url: "/system/config/listAllConfig",
    method: "get",
  });
}

export function updateSystem(data) {
  return request({
    url: "/system/config/updateOutConfig",
    method: "post",
    data: data,
  });
}

// 列表
export function getShopList(data) {
  return request({
    url: "/admin/getShopList",
    method: "post",
    data: data,
  });
}
export function getSetById(data) {
  return request({
    url: "/bus/busConfig/getInfo/" + data,
    method: "get",
  });
}

export function addSet(data) {
  return request({
    url: "/bus/busConfig/add",
    method: "post",
    data: data,
  });
}
export function editSet(data) {
  return request({
    url: "/bus/busConfig/edit",
    method: "post",
    data: data,
  });
}
export function removeSet(data) {
  return request({
    url: "/bus/busConfig/removeBatch/" + data,
    method: "post",
    data: data,
  });
}
export function getUserUseList(data) {
  return request({
    url: "/user/getConsumeList",
    method: "post",
    data: data,
  });
}
export function delUser(data) {
  return request({
    url: "/admin/delUser",
    method: "post",
    data: data,
  });
}
export function statusBank(data) {
  return request({
    url: "/admin/authBankInfo",
    method: "post",
    data: data,
  });
}

export function getProfitView(data) {
  return request({
    url: "/staff/getProfitView",
    method: "post",
    data: data,
  });
}

export function getProfitViewList(data) {
  return request({
    url: "/staff/getProfitList",
    method: "post",
    data: data,
  });
}

export function getSystemConfig(data) {
  return request({
    url: "/openapi-service/getConfig",
    method: "post",
    data: data,
  });
}
export function updateSystemConfig(data) {
  return request({
    url: "/openapi-service/modifyConfig",
    method: "post",
    data: data,
  });
}

export function getUseList(data) {
  return request({
    url: '/user/getConsumeList',
    method: "post",
    data: data,
  });
}
export function writeOff(data) {
  return request({
    url: '/staff/writeOff',
    method: "post",
    data: data,
  });
}
export function delShop(data) {
  return request({
    url: '/admin/delShop',
    method: "post",
    data: data,
  });
}